<include file="public@header"/>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>导航列表</h5>
                    <div class="ibox-tools">
                        <a href="#" class="btn btn-primary btn-xs active">所有导航</a>
                        <a href="{:url('nav/add')}" class="btn btn-primary btn-xs">添加导航</a>
                    </div>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('Rbac/listorders')}" method="post" class="margin-top-20">
                            <php> $is_main=array("1"=>'是',"0"=>'否');</php>
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th width="40">ID</th>
                                    <th>名称</th>
                                    <th width="80">主导航</th>
                                    <th>描述</th>
                                    <th width="160">{:lang('ACTIONS')}</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="navs" item="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$is_main[$vo.is_main]}</td>
                                        <td>{$vo.remark}</td>
                                        <td>
                                            <a href="javascript:parent.openIframeLayer('{:url('NavMenu/index',array('nav_id'=>$vo['id']))}','{$vo.name}菜单管理',{});">菜单管理</a>
                                            <a href="{:url('nav/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                                            <a class="js-ajax-delete" href="{:url('nav/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
                                        </td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                        </form>
                    </div>
                    </div>
                </div>
        </div>
    </div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>